import React from 'react'
import FnFather from './FnFather'

const themes = {
    light: {
        foreground: "#000000",
        background: "#eeeeee"
    },
    dark: {
        foreground: "#ffffff",
        background: "#222222"
    }
};

export let ThemeContext = React.createContext(themes);
export default function FnGrand() {
    return (
        <ThemeContext.Provider value={themes}>
        <div>
            <p>爷爷辈的组件，这里有一些传家宝，要留给孩儿们</p>
            <FnFather></FnFather>
        </div>
        </ThemeContext.Provider>
    )
}
